package org.javaboy.freemarker_thymeleaf_jsp.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void configureViewResolvers(ViewResolverRegistry registry) {
        registry.jsp().prefix("/jsp/")
                .suffix(".jsp").viewClass(MyInternalResourceView.class);
        registry.order(1);
    }
}
